package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Car;
import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarMapper {
    int deleteByPrimaryKey(Long id);

    int insert(@Param("car") Car car, @Param("client") Client client);

    Car selectByPrimaryKey(Long id);

    List<Car> selectAll();

    int updateByPrimaryKey(@Param("car") Car car, @Param("client") Client client);

    int query4Count(QueryObject qo);

    List<?> query4List(QueryObject qo);
}